/**
 *
 */
package com.yangtao.prototype.system.domain;

import com.yangtao.framework.hibernate.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * 操作日志
 *
 * @author 杨涛
 * @version 1.0
 */
@Entity()
@Table(name = "sys_ope_log")
public class OperationLog extends BaseEntity {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 操作人Id
	 */
	@Column(length = 20)
	private String operatorId;
	/**
	 * 操作人名称
	 */
	@Column(length = 50)
	private String operatorName;
	/**
	 * 操作编码 类名+方法名
	 */
	@Column(length = 8)
	private String operationCode;
	/**
	 * 操作名称
	 */
	@Column(length = 50)
	private String operationName;

	/**
	 * 线程Id
	 */
	@Column(length = 50)
	private String threadId;
	/**
	 * 线程名称
	 */
	@Column(length = 50)
	private String threadName;
	/**
	 * 操作开始时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	private Date operationStartTime;
	/**
	 * 操作结束时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	private Date operationEndTime;

	/**
	 * @return the threadId
	 */
	public String getThreadId() {
		return threadId;
	}

	/**
	 * @param threadId the threadId to set
	 */
	public void setThreadId(String threadId) {
		this.threadId = threadId;
	}

	/**
	 * @return the threadName
	 */
	public String getThreadName() {
		return threadName;
	}

	/**
	 * @param threadName the threadName to set
	 */
	public void setThreadName(String threadName) {
		this.threadName = threadName;
	}

	/**
	 * @return the operatorId
	 */
	public String getOperatorId() {
		return operatorId;
	}

	/**
	 * @param operatorId the operatorId to set
	 */
	public void setOperatorId(String operatorId) {
		this.operatorId = operatorId;
	}

	/**
	 * @return the operatorName
	 */
	public String getOperatorName() {
		return operatorName;
	}

	/**
	 * @param operatorName the operatorName to set
	 */
	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}

	/**
	 * @return the operationCode
	 */
	public String getOperationCode() {
		return operationCode;
	}

	/**
	 * @param operationCode the operationCode to set
	 */
	public void setOperationCode(String operationCode) {
		this.operationCode = operationCode;
	}

	/**
	 * @return the operationName
	 */
	public String getOperationName() {
		return operationName;
	}

	/**
	 * @param operationName the operationName to set
	 */
	public void setOperationName(String operationName) {
		this.operationName = operationName;
	}

	/**
	 * @return the operationStartTime
	 */
	public Date getOperationStartTime() {
		return operationStartTime;
	}

	/**
	 * @param operationStartTime the operationStartTime to set
	 */
	public void setOperationStartTime(Date operationStartTime) {
		this.operationStartTime = operationStartTime;
	}

	/**
	 * @return the operationEndTime
	 */
	public Date getOperationEndTime() {
		return operationEndTime;
	}

	/**
	 * @param operationEndTime the operationEndTime to set
	 */
	public void setOperationEndTime(Date operationEndTime) {
		this.operationEndTime = operationEndTime;
	}
}
